<?php
namespace Tbf\Bundle\RouteBundle\Exclude;


use Symfony\Component\HttpFoundation\Request;

class PathInfoExclude implements ExcludeInterface{
    protected $path_info;
    public function __construct($path_info){
        $this->path_info = $path_info;
    }
    /**
     * @param Request $request
     * @return boolean
     */
    public function isExclude(Request $request)
    {
        if ($request->getPathInfo()===$this->path_info){
            return true;
        }
        return false;
    }

}